﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DAL;
using System.Data;
namespace TrabalhoWeb
{
    public partial class UserControlDetalheConta : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Contas objContas = new Contas();
            DataTable dttContas = new DataTable();
            dttContas = objContas.ListaContas(int.Parse(Request.QueryString["CodigoConta"]));

            ID.Text = dttContas.Rows[0]["ID"].ToString();
            lblNome.Text = dttContas.Rows[0]["Nome"].ToString();
            lblDescricao.Text = dttContas.Rows[0]["Descricao"].ToString();
            lblDtCadastro.Text = dttContas.Rows[0]["Data_Cadastro"].ToString();
            lblDtVenc.Text = dttContas.Rows[0]["Data_Vencimento"].ToString();
            lblValor.Text = dttContas.Rows[0]["Valor"].ToString();
       
        }
    }
}